<layout name="../../../resource/master"/>


<form action="" method="POST" role="form">
    <legend>货品列表</legend>

    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <!--颜色-->
            <foreach name="data" key="k" item="v">
            <th>{$k}</th>
            </foreach>
            <th>货号</th>
            <th>货存</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="goods" id="vo">
        <tr>
            <td>{$vo['tgid']}</td>
            <foreach name="vo['combine']" key="k" item="v">
            <td>{$v}</td>
            </foreach>
            <td>{$vo['number']}</td>
            <td>{$vo['inventory']}</td>
            <td><a href="{:u('del',['gid'=>$vo['gid'],'tgid'=>$vo['tgid']])}" class="btn btn-default btn-sm">删除</a> </td>

        </tr>
        </volist>
        <tr>
            <td>
                <input type="text" class="form-control">
            </td>
            <foreach name="data" key="k" item="v">
            <td>
                <select name="combine[]"  class="form-control">
                    <option value=""> -- 请选择 -- </option>

                    <foreach name="v" key="kk" item="vo">
                        <option value="{$vo['gtid']}"> -- {$vo['gtvalue']} -- </option>
                    </foreach>

                </select>
            </td>
            </foreach>
            <td>
                <input type="text" name="number" class="form-control">
            </td>
            <td>
                <input type="text" name="inventory" class="form-control">
            </td>
            <td>
            </td>
        </tr>
        </tbody>

    </table>



    <button type="submit" class="btn btn-primary">提交</button>
</form>